package com.bailiban;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @author zhulang
 * @Classname BCryptPasswordEncoder
 * @Description BCryptPasswordEncoder
 */
public class PasswordEncoder {
    public static String passwordEncoder(String password) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        String encode = encoder.encode(password);
        return encode;
    }
}
